package com.crp.unitalinforbaseplat.app.sys.controller;

import com.crp.unitalinforbaseplat.app.core.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/base/index/")
public class IndexController extends BaseController {

    @RequestMapping("index.crp")
    ModelAndView index(){
        ModelAndView modelAndView = new ModelAndView("backend/index");
        modelAndView.addObject("userName",getUserName());
        modelAndView.addObject("roleName",getRoleName());
        return modelAndView;
    }
}
